import { ValueData } from '../base-data';

/**
 * 布尔类型数据
 */
class BooleanData extends ValueData<boolean>{

    protected generate(from: boolean): boolean {
        return from;
    }

    protected equal(a: boolean, b: boolean): boolean {
        return a === b;
    }

    protected copy(targetContainer: boolean[], source: boolean): void {
        targetContainer[0] = source;
    }

}

export { BooleanData };